class Solution:
    def findCenter(self, edges: List[List[int]]) -> int:
        if edges[0][0] == edges[1][0] or edges[0][1] == edges[1][0]:
            return edges[1][0]
        return edges[1][1]